Core Business Processes
1. Device Connection Process
User creates a gateway
↓
Configure basic gateway information: name, type, and project
↓
Gateway connects to the EMQX broker through MQTT
↓
Complete device authentication and establish heartbeat communication
↓
Gateway reports data → stored in InfluxDB
↓
WebSocket push → real-time display on the Web front end
2. Cloud SCADA Activation Process
Add gateway → select Cloud SCADA activation → select license type: trial or permanent
↓
Trial license → automatically set trial_end_time = now + 30 days
Permanent license → trial_end_time = null
↓
Bind gateway data points → bind objects in the SCADA editor
↓
License expires → WebSocket push stops + InfluxDB storage stops
3. Data Storage Configuration Process
Open Gateway Details → Data-Point Management
↓
Select the data points whose history should be stored, up to 100 per operation
↓
Call the /data/setStore API to save the configuration in a batch
↓
Data is written to InfluxDB → historical-data queries become available
↓
Data bucket expires → storage stops automatically
4. Remote Operations and Maintenance Process
Operations personnel sign in to the Web management console
↓
Select the target gateway → open Gateway Details
↓
Remote configuration: push configuration through MQTT → gateway updates automatically
Firmware OTA upgrade: upload firmware package → select upgrade strategy → issue upgrade command
Remote logs: establish a WebSocket connection → stream logs in real time
Remote shell: establish a WebSocket connection → execute remote commands
↓
Operation result returned → log recorded